<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>houdunren.com</title>
  </head>
  <body></body>
  <script>
    // let arr = ["后盾人", 2010];
    // let name = arr[0];
    // let year = arr[1];
    // let [name, year] = arr;
    // console.log(name);
    // console.log(name, year);

    // function get() {
    //   return ["后盾人", 2010];
    // }
    // let [name, year] = get();
    // console.log(name);
    // "use strict";
    // var [name, year] = ["后盾人", 2010];
    // console.log(name);

    // console.log(..."hdcms");
    // const [...arr] = "hdcms";
    // const [...arr] = ['h','d' c m .s]
    // console.log(arr);

    // let [, year] = ["后盾人", 2010];
    // console.log(year);

    // let [name, ...args] = ["后盾人", "houdunren.com", 2010];
    // console.log(args);
    // let a = ["cms", ...args];
    // console.log(a);

    // let [name, year = 2010] = ["后盾人"];
    // console.log(year);
    function show(args) {
      console.log(args);
    }
    show(["后盾人", 2010]);
  </script>
</html>
